<?php 
   $this->load->view('header');
   $modify_url = site_url('billboard/bb_vehicle/modify/');
   $delete_url = site_url('billboard/bb_vehicle/delete/');
   $add_url    = site_url('billboard/bb_vehicle/add/');
?>

<table class="tbl" border="0" cellpadding="2" cellspacing="1" width="auto">
<thead>
<tr>
    <th valign='middle' align='center'  class='tbl_headercell'>Image</th>
	<th valign='middle' align='center'  class='tbl_headercell'>Title</th>
	<th valign='middle' align='center'  class='tbl_headercell'>Showroom</th>
    <th align="center" width="70"> &nbsp; Action &nbsp; </th>
</tr>
</thead>
<tbody
      <?
         $this->load->helper('img');
         $i = 0;
         foreach ($bb_vehicle_list as $bb_vehicle): 
            $i++;
            if (($i%2)==0) { $bgColor = "#FFFFFF"; } else { $bgColor = "#C0C0C0"; }
               
            $modify = edit_icon($modify_url."/".$bb_vehicle["id"]);
            $delete = delete_icon($delete_url."/".$bb_vehicle["id"]);
            //$modify = anchor_icon($modify_url."/".$bb_vehicle["id"],'actions/edit-find', 'Edit');
            //$delete = anchor_icon($delete_url."/".$bb_vehicle["id"],'emblems/emblem-unreadable', 'Delete');
            
      ?>
    <tr bgcolor="<?= $bgColor; ?>">
        <td align="center" nowrap="nowrap"><img src="/img/vehicle/<?= $bb_vehicle['Image']; ?>" alt="n/a" /></td>
        <td align="center" nowrap="nowrap"><?= $bb_vehicle['Title']; ?></td>
        <td align="center" nowrap="nowrap"><?= $bb_vehicle['Showroom']; ?></td>
        <td align="center" nowrap="nowrap">&nbsp;<?= $modify ?>&nbsp;&nbsp;&nbsp;<?= $delete ?></td>
    </tr>
      <? endforeach; ?>
</tbody>
</table>
<br />


<?php $this->load->view('footer'); ?>

